// $Id: loggerdotnetworkthruput.h 66 2004-11-06 13:09:34Z jonas $
#ifndef LOGGERDOTNETWORKTHRUPUT_H
#define LOGGERDOTNETWORKTHRUPUT_H

#include "logger.h"
#include "eos.h"
#include <fstream>
#include <map>
using namespace std;

/**
 * Shows graphically how much data that is transfered where in the network cumulative
 */
class LoggerDotNetworkThruput : public Logger {
public:
	LoggerDotNetworkThruput();
	void eos_simulate_start(void *);
	void eos_simulate_stop(void *);
	void network_transfer(void*, void *, unsigned int);

private:
	void LoggerDotNetworkThruput::outputNetoworkDot(Eos *, fstream &);

	Eos *m_eos;

	std::map<Node *, std::map<Node *, double> > m_nodeTransfers;
};

#endif
